QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Transparency Color

Labels

ASCII
TransparencyColor
Binary
kxpr ( = 0x6B787072 )

Data Format

ColorRGB            transparency
transparency
A structure having three fields: red, green, blue. The permitted values of these fields are 32-bit floating-point numbers in the closed interval [0, 1], where 0 is the minimum value and 1 is the maximum value.

Data Size

12

Description

A transparency color attribute affects the amount of color allowed to pass through an object that is not opaque. The transparency color values are multiplied by the color values of obscured objects during pixel color computations. Thus, the transparency color values ( 1 1 1 ) indicate complete transparency and the values ( 0 0 0 ) indicate complete opacity. The values ( 0 1 0 ) indicate that all light in the green color channel is allowed to pass through the foreground object, and no light in the red and blue channels is allowed to pass through the foreground object.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute sets. A transparency color object always has a parent object.

Child Objects

None.

Example

Container (
    AttributeSet ( )
    TransparencyColor ( .5 .5 .5 )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |